using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace eService.Presentation
{
    public partial class Welcome : Form
    {
        public Welcome()
        {
            InitializeComponent();
        }
        int z;
        private void Welcome_Load(object sender, EventArgs e)
        {
            this.timer1.Enabled = true;
            this.timer1.Interval = 100;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            z += 1;

            if (z >= 10)
            {
                this.timer1.Enabled = false;
                this.DialogResult = DialogResult.OK;
                this.progressBar1.Dispose();
            }
            this.progressBar1.Value = z;
        }
	}
}
